package indi.qing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import indi.qing.VO.UserVO;
import indi.qing.VO.UserLoginVO;
import indi.qing.entity.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 熊卿智
 * @since 2021-12-12
 */
public interface UserService extends IService<User> {

    int register(User user);

    UserLoginVO login(String phone, String password, int role);

    List<UserVO> findFriend(Long userId, String phone);

    void bandDevice(Long userId, String deviceSn);

    UserVO findUserById(Long userId);
}
